package io.renren.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import io.renren.po.Shoot;
import io.renren.vo.ShootReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 事故信息
 * @author Administrator
 *
 */
public interface ShootDao extends BaseMapper<Shoot>{

	/**
	 * 生成单号
	 * @param shoot
	 * @return
	 */
	void createShoot(ShootReq shoot);
	
	/**
	 * 按照随手拍类型查询
	 * @param shootType
	 * @return
	 */
	int queryShootCount(@Param("shootType") String shootType);
	
	/**
	 * 按照随手拍类型查询
	 * @param shootType
	 * @return
	 */
	List<Shoot> queryShoot(@Param("shootType") String shootType, Wrapper<Shoot> wrapper);
}
